﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


using System.Windows;
using System.Windows.Input;

namespace Mskold.IterationManager
{
    internal class WaitCursor : IDisposable
    {

        private Window _control = null;
        private Cursor oldCursor = null;

        public WaitCursor(Window parent)
        {
            _control = parent;
            oldCursor = parent.Cursor;
            _control.Cursor = Cursors.Wait;
        }

        public void Dispose()
        {
            _control.Cursor = oldCursor;
        }

    }
    
}
